home *** CD-ROM | disk | FTP | other *** search
/ Aminet 48 / Aminet 48 (2002)(GTI - Schatztruhe)[!][Apr 2002].iso / Aminet / dev / lang / pilot.lha / pilot / source / pilot_protos.h next >
Encoding:
C/C++ Source or Header  |  2001-12-24  |  1.8 KB  |  116 lines

  1. /* Prototypes for functions defined in
  2. pilot.c
  3.  */
  4.  
  5. extern char * errmsg[21];
  6.  
  7. extern struct a_label * label_list;
  8.  
  9. extern struct a_label * last;
  10.  
  11. extern struct symbol_entry * symbol_table;
  12.  
  13. extern struct symbol_entry * symbol_node;
  14.  
  15. extern int subroutine_stack[10];
  16.  
  17. extern FILE * fileid;
  18.  
  19. extern char def_string[256];
  20.  
  21. extern int current_line;
  22.  
  23. extern int line_loc;
  24.  
  25. extern int last_line_loc;
  26.  
  27. extern int boolean;
  28.  
  29. extern int boolean_cont;
  30.  
  31. extern int nesting_level;
  32.  
  33. extern int error;
  34.  
  35. extern int furthest_into_file;
  36.  
  37. extern int debug;
  38.  
  39. int main(int argc,
  40.          char ** argv);
  41.  
  42. int init(char * fname);
  43.  
  44. int wrapup(int);
  45.  
  46. int parse(char * line);
  47.  
  48. int type(char * line);
  49.  
  50. int typehang(char * line);
  51.  
  52. int accept(char * line);
  53.  
  54. int match(char * line);
  55.  
  56. int jump(char * line);
  57.  
  58. int pause(char * line);
  59.  
  60. int ink(char * line);
  61.  
  62. int endit(char * line);
  63.  
  64. int use(char * line);
  65.  
  66. int compute(char * line);
  67.  
  68. int label(char * line,
  69.           int loc);
  70.  
  71. int raise_error(int errno,
  72.                 int errtype,
  73.                 char * arg);
  74.  
  75. int in_string(char * buffer,
  76.               char * pattern);
  77.  
  78. int check_condition(char * line);
  79.  
  80. int remove_past_colon(char * line);
  81.  
  82. int break_string(char * line,
  83.                  char * lhs,
  84.                  char * op,
  85.                  char * rhs);
  86.  
  87. int add_label(char * name);
  88.  
  89. int find_label(char * name);
  90.  
  91. int get_to_label(int loc,
  92.                  char * labelname);
  93.  
  94. struct symbol_entry * add_symbol(struct symbol_entry * node,
  95.                                  char * symbol);
  96.  
  97. int print_symbol_table(struct symbol_entry * node);
  98.  
  99. struct symbol_entry * find_symbol(struct symbol_entry * node,
  100.                                   char * symbol);
  101.  
  102. int substitute_vars(char * line);
  103.  
  104. int relation(char * exp);
  105.  
  106. int evaluate(char * exp);
  107.  
  108. int expression(char * exp);
  109.  
  110. int term(char * exp);
  111.  
  112. int factor(char * string);
  113.  
  114. char * get_token(char * line);
  115.  
  116.